using System;
using System.Web;

namespace Sedna.Core.Controller.Common
{
	public class NameRelatedValueActionParam : NameValueActionParam
	{
		public override string GetValue(IExecutionContext executionContext)
		{
			if(this.Value.StartsWith("~"))
			{
				return HttpRuntime.AppDomainAppVirtualPath + this.Value.Substring("~".Length);
			}

			return this.Value;
		}
	}
}
